package cn.whdreamblog.iservers;

import java.util.List;
import java.util.Map;

import cn.whdreamblog.entites.BlogArticle;
import cn.whdreamblog.entites.PageBean;


public interface IBlogArticleServers {
	public boolean addBlogArticle(BlogArticle ba);
	public boolean removeBlogArticle(BlogArticle ba);
	public boolean updateBlogArticle(BlogArticle ba);
	public PageBean searchBlogArticleByKind(String kind , int limit ,int page);
	public BlogArticle searchBlogArticleById(int id);
	public List<BlogArticle> getAllBlogArticles();
	public PageBean getAllBlogSomeArticles( int page, int limit,int length);
	public List<BlogArticle> getAllBlogSomeArticles( int start, int limit );
	public List<BlogArticle> getSomeBlogArticlesAttribute(int start, int limit,
			String attr);
	public Map<String, Object> getBlogArticleAndComments(int id);
	public PageBean getAllBlogSomeArticlesByPage(  int limit ,int page );
}
 